{%include file="m.index.header.tpl.php"%}
<!--主体部分-->
<div class="container" style="margin-top:70px;">
    <div class="row" style="margin-top:10px;margin-bottom:20px;">
        <div class="col-sm-12 distance" >
            <div class="form-group">
                <div class="col-sm-10  text-center">
                    <div class="col-xs-6"><a type="button" class="btn btn-default" href="index.php?a=inform.superiorlist&inform_type={%$inform_type%}">上级通知</a> </div>
                    <div class="col-xs-6"><a type="button" class="btn btn-primary " href="index.php?a=inform.dispenselist&inform_type={%$inform_type%}">分发列表</a></div>
                </div>
            </div>
        </div>
    </div>
    <!-- <div class="row" style="margin-right:10%;">
      <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="superior notice-add.html" style="width:30%">增加</a></div>
    </div>-->
    <div class="row" style="margin-top:10px;">
        <form name="myform" action="" method="get">
            <div class="col-sm-12 distance hierarchy2">
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">标题:</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" name="inform_title" value="{%$inform_title%}">
                    </div>
                </div>
            </div>
            <div class="col-sm-12 distance hierarchy" >
                <div class="form-group hierarchy" >
                    <label for="" class="col-sm-2 control-label">上级部门:</label>
                    <div class="col-sm-10">
                        <select class="form-control" name="up_id">
                            <option value="">全部</option>
                            {%foreach from=$up_lists key=key item=value%}
                            <option value="{%$value.up_id%}"{%if $value.up_id==$up_id%}selected{%/if%}>{%$value.up_name%}</option>
                            {%/foreach%}
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-sm-12 distance hierarchy2">
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">开始时间:</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" value="{%$from%}" id="from" name="from">

                    </div>
                </div>
            </div>
            <div class="col-sm-12 distance hierarchy2">
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">结束时间:</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" value="{%$to%}" id="to" name="to">
                    </div>
                </div>
            </div>
            <div class="col-xs-12 distance" >
                <div class="form-group  text-center" style="padding-top:0px;">
                    <input type="hidden" name="a" value="inform.superiorlist">
                    <input type="hidden" name="inform_type" value="{%$inform_type%}">
                    <button type="submit" class="btn btn-success absolutely ">
                        搜索
                    </button>
                </div>
            </div>
        </form>
    </div>
    <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
        {%foreach from=$inform_lists key=key item=value%}
        <table class="table table-striped table-bordered text-center"  id="middles">
            <tr>
                <td>标题</td>
                <td>{%$value.inform_title%}</td>
            </tr>
            <tr>
                <td>文档号</td>
                <td>{%$value.inform_num%}</td>
            </tr>
            <tr>
                <td>上级部门</td>
                <td>{%$value.up_name%}</td>
            </tr>
            <tr>
                <td>下达时间</td>
                <td>{%$value.start_time%}</td>
            </tr>
            <tr>
                <td>要求完成时间</td>
                <td>{%$value.end_time%}</td>
            </tr>
            <tr>
                <td>备注</td>
                <td>{%$value.inform_content%}</td>
            </tr>
            <tr>
                <td>附件</td>
                <td>{%$value.inform_file%}</td>
            </tr>
            <tr>
                <td>操作</td>
                <td ><a type="button" class="btn btn-warning  " href="index.php?a=inform.dispensedetails&inform_type={%$inform_type%}&inform_id={%$value.inform_id%}" >查看</a>
                    <!--<a type="button" class="btn btn-danger  " href="superior notice-update.html" >修改</a>-->
            </tr>


            <!-- Modal
            <form name="form2" action="" method="post">
            <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                            <h4 class="modal-title" id="myModalLabel">选择分发对象:</h4>
                        </div>
                        <div class="modal-body">
                            <div class="row">
                                <div class="col-xs-12">选择教师</div>
                                <div class="col-xs-8 col-xs-offset-4">
                                    <ul id="tree2" class="ztree">
                                    </ul>
                                    <div style="display:none;"> 被勾选时：
                                        <input type="checkbox" id="py" class="checkbox first" checked />
                                        <span>关联父</span>
                                        <input type="checkbox" id="sy" class="checkbox first" checked />
                                        <span>关联子</span><br/>
                                        取消勾选时：
                                        <input type="checkbox" id="pn" class="checkbox first" checked />
                                        <span>关联父</span>
                                        <input type="checkbox" id="sn" class="checkbox first" checked />
                                        <span>关联子</span><br/>
                                    </div>
                                </div>
                            </div>
                            <!--row end-->

            <!-- <div class="row">
                 <div class="col-xs-12">选择学生</div>
                 <div class="col-xs-8 col-xs-offset-4">
                     <ul id="treeDemo" class="ztree" >
                     </ul>
                     <div style="display:none;"> 被勾选时：
                         <input type="checkbox" id="py" class="checkbox first" checked />
                         <span>关联父</span>
                         <input type="checkbox" id="sy" class="checkbox first" checked />
                         <span>关联子</span><br/>
                         取消勾选时：
                         <input type="checkbox" id="pn" class="checkbox first" checked />
                         <span>关联父</span>
                         <input type="checkbox" id="sn" class="checkbox first" checked />
                         <span>关联子</span><br/>
                     </div>
                 </div>
             </div>-->

                        <!-- </div>modal-body-->
    <!--<div class="modal-footer">
        <!--<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                            <button type="submit" class="btn btn-primary"  onClick="function c()">保存</button>
                        </div>-->
    <!-- </div>
</div>
</div>
</form>
Modal  end -->
        </table>
        {%/foreach%}
    </div>
</div>
{%include file="m.index.footer.tpl.php"%}
